<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="../lib/vue.js"></script>
    <link
      rel="stylesheet"
      href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
      integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
      crossorigin="anonymous"
    />
  </head>

  <body>
    <div id="app">
      <div class="alert alert-primary" role="alert">
        v-model结合select使用
      </div>
      <div class="alert alert-danger " role="alert">
        <select name="abc" id="" class="form-control" v-model="fruit">
          <option value="苹果">苹果</option>
          <option value="香蕉">香蕉</option>
          <option value="西瓜">西瓜</option>
          <option value="西瓜">水蜜桃</option>
        </select>
      </div>
      <div class="alert alert-primary" role="alert">
        选择的是：{{fruit}}
      </div>
    </div>

    <script>
      var vm = new Vue({
        el: '#app',
        data: {
          fruit: '香蕉'
        },
        methods: {}
      })
    </script>
  </body>
</html>
